package processes

import (
	"github.com/astaxie/beego"
	"monitor_agent/apps/base"
)

func init() {
	beego.Router("/process/status", &Controller{}, "GET:Status")
}

type Controller struct {
	base.Controller
}

func (o *Controller) Status() {
	o.Data["json"] = Register.GetAll()
	o.ServeJSON()
}
